package com.xiaokong.changerecord.entity;

import cn.hutool.core.collection.CollUtil;
import lombok.Data;
import lombok.experimental.Accessors;

import java.util.List;

/**
 * 修改记录表单详情
 *
 * @author Hu_bx
 * @date 14:12 2022/11/10
 **/
@Data
@Accessors(chain = true)
public class ChangeForm {

    /**
     * 修改字段记录
     */
    private List<ChangeField> fieldList = CollUtil.newArrayList();

    /**
     * 修改表格记录
     */
    private List<ChangeTable> tableList = CollUtil.newArrayList();
    /**
     * 子表单
     */
    private ChangeForm changeForm;

    /**
     * 表单 label
     */
    private String label;

    /**
     * 类型
     */
    private Type type = Type.UPDATE;

    public enum Type {
        /**
         * 表单类型
         */
        UPDATE, SAVE, DELETE
    }
}
